import request from '@/utils/request'
import {POS_SERVER_URL} from '@/utils/common'
import {getSignedParams} from '@/utils/sign'

/**
 * 获取油站列表
 * @returns
 */
export function getStationList () {
  return request({
    url: POS_SERVER_URL + '/api/pc/station-list',
    method: 'post',
    data: getSignedParams({})
  })
}

/**
 * 获取字典列表
 * @param type
 * @returns {*}
 */
export function getDictList (type) {
  return request({
    url: POS_SERVER_URL + '/api/pc/getDictListByType',
    method: 'post',
    data: getSignedParams({dictType: type})
  })
}
